import request from "@/utils/request";
//科室列表
export function departmentList(data) {
  return request({
    method: "post",
    url: "/waste/department/getList",
    params: data
  });
}

//保存活编辑员工
export function sysUserStaffSave(data) {
  return request({
    method: "post",
    url: "/waste/sysUserStaff/save",
    data
  });
}
//获取员工列表
export function sysUserStaffList(data) {
  return request({
    method: "post",
    url: "/waste/sysUserStaff/getList",
    data
  });
}
//下载二维码
export function generateQrCode(id) {
  return request({
    method: "get",
    url: `/waste/sysUserStaff/generateQrCode/${id}`,
    responseType: "blob"
  });
}
//删除员工
export function sysUserStaffRemove(id) {
  return request({
    method: "delete",
    url: `/waste/sysUserStaff/remove/${id}`
  });
}

//导入设备列表 /deviceBase/importList
export function importList(data) {
  return request({
    method: "post",
    url: "/waste/sysUserStaff/importList",
    headers: {
      "Content-Type": "multipart/form-data"
    },
    data
  });
}
///deviceBase/exportList 导出设备列表
export function exportList(data) {
  return request({
    method: "post",
    url: "/waste/sysUserStaff/exportList",
    responseType: "blob",
    data
  });
}

//批量导出二维码
export function generateQrCodeBatch(data) {
  return request({
    method: "post",
    url: "/waste/sysUserStaff/generateQrCode",
    responseType: "blob",
    data
  });
}

//下载模板
export function downloadTemplate(data) {
  return request({
    method: "get",
    responseType: "blob",
    url: "/waste/sysUserStaff/downloadTemplate"
  });
}
